﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Plugin
{
    public class Plugin
    {
        private Type _srcType;

        public Type Type
        {
            get { return _srcType; }
        }

        private Assembly _asm;

        public Assembly Assembly
        {
            get { return _asm; }
        }

        public ClassAttribute ClassAttribute = null;

        public List<EventAttribute> EventAttributes = new List<EventAttribute>();

        public List<MethodAttribute> MethodAttributes = new List<MethodAttribute>();

        public List<FieldAttribute> FieldAttributes = new List<FieldAttribute>();

        public Plugin(Type srcType, Assembly asm, ClassAttribute classAttribute)
        {
            _srcType = srcType;
            _asm = asm;
            ClassAttribute = classAttribute;
        }
    }
}
